﻿<UserControl
  x:Class="River.Folderize.UI.FolderSelectorControl" x:ClassModifier="internal"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  mc:Ignorable="d" Background="White"
  d:DesignHeight="32" d:DesignWidth="150" Width="150" Height="32">

  <Grid>
    <StackPanel Orientation="Horizontal">
      <Image
        Name="folderImage" Source="{Binding Image}"
        Width="32" Height="32" HorizontalAlignment="Left"
        RenderOptions.BitmapScalingMode="NearestNeighbor" />
      <CheckBox
        Name="folderCheck"
        IsChecked="{Binding IsPinned}"
        Content="{Binding Name}"
        Checked="OnChecked" Unchecked="OnUnchecked"
        Margin="4,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
    </StackPanel>
  </Grid>
</UserControl>
